package com.studio701.carguard.service.imp;

import com.studio701.carguard.pojo.DrivingBehavior;
import com.studio701.carguard.mapper.DrivingBehaviorMapper;
import com.studio701.carguard.service.IDrivingBehaviorService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xjc
 * @since 2022-04-15
 */
@Service
public class DrivingBehaviorServiceImpl extends ServiceImpl<DrivingBehaviorMapper, DrivingBehavior> implements IDrivingBehaviorService {

    @Autowired
    DrivingBehaviorMapper drivingBehaviorMapper;

    @Override
    public DrivingBehavior getByUserId(Integer id) {
        return drivingBehaviorMapper.getByUserId(id);
    }
}
